package com.ssy.lingxi.purchase.api.dto.request.purchase;

import com.ssy.lingxi.purchase.api.dto.request.EnclosureUrlsRequest;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *修改报价单
 */
@Data
public class QuotedPriceUpdateRequest {

    /**
     *采购报价单ID
     */
    @NotNull(message = "采购报价单ID不能为空")
    private Long  id;

    /**
     *付款说明
     */
    private String payDetails;

    /**
     * 税费说明
     */
    private String taxes;

    /**
     *物流说明
     */
    private String logistics;

    /**
     *包装说明
     */
    private String packRequire;

    /**
     *其他说明
     */
    private String otherRequire;

    /**
     *报价单摘要
     */
    @NotEmpty(message = "报价单摘要不能为空")
    private String quotedDetails;

    /**
     *附件链接集合
     */
    private List<EnclosureUrlsRequest> enclosureUrls;

    /**
     *联系电话
     */
    @NotEmpty(message = "联系电话不能为空")
    private String tel;

    /**
     *联系电话前缀ID
     */
    @NotNull(message = "联系电话前缀ID不能为空")
    private Long telPrefix;

    /**
     *联系人
     */
    @NotEmpty(message = "联系人不能为空")
    private String contacts;

    /**
     *交付说明
     */
    private String deliveryDetails;

    /**
     *报价 物料详情
     */
    @Valid
    @NotEmpty(message = "报价 物料详情不能为空")
    private List<QuotedPriceDetailsRequest> detailss;
}
